package com.daxue.activitibase;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.junit.Before;
import org.junit.Test;

/**
 * @author daxue0929
 * @date 2023/2/23
 */

public class StartDemo {


    private ProcessEngine processEngine;

    @Before
    public void init() {
        // getDefaultProcessEngine() 会读取resources文件夹下名为activiti.cfg.xml的配置文件
        //
        // ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
        // 也可以自定义文件名，和Configuration配置类的beanName
        ProcessEngineConfiguration processEngineConfigurationFromResource =
            ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml");
        //获取流程引擎对象。
        processEngine = processEngineConfigurationFromResource.buildProcessEngine();
    }


    @Test
    public void start() {

    }
}
